package com.zhou.org.mapper;

import com.zhou.org.dao.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhou.org.dto.MenuDto;
import com.zhou.org.dto.MenuQueryDto;
import com.zhou.org.model.MenuTree;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
public interface MenuMapper extends BaseMapper<Menu> {
    List<MenuDto> getPageList(@Param("dto") MenuQueryDto dto);
    List<MenuTree> getMenuTree(@Param("id")Integer id);
    List<Map<String,Object>> getTreeData(@Param("menuName") String menuName);
}
